package com.panda.mall.common.mallWares.entity;

import javax.validation.constraints.NotNull;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.panda.mall.common.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
* 商品属性-分组关联表
* mall_goods_group_relation
*/
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("mall_goods_group_relation")
public class MallGoodsGroupRelation extends BaseEntity implements Serializable {

    /**
    * 主键id
    */
    @NotNull(message="[主键id]不能为空")
    @ApiModelProperty("主键id")
    private Long id;
    /**
    * 属性id
    */
    @ApiModelProperty("属性id")
    private Long attrId;
    /**
    * 属性分组id
    */
    @ApiModelProperty("属性分组id")
    private Long attrGroupId;
    /**
    * 属性排序
    */
    @ApiModelProperty("属性排序")
    private Integer attrSort;
}
